<p class="tbmu">
	<!--{if $magiccredits}-->
		<span class="y">
			<!--{if $_G['group']['magicsdiscount']}-->{lang magics_discount}<span class="pipe">|</span><!--{/if}-->
			{lang you_have_now}
			<!--{eval $i = 0;}-->
			<!--{loop $magiccredits $id}-->
				<!--{if $i != 0}-->, <!--{/if}--><span class="xi1">{$_G['setting']['extcredits'][$id][img]} {$_G['setting']['extcredits'][$id][title]} <!--{echo getuserprofile('extcredits'.$id);}--> {$_G['setting']['extcredits'][$id][unit]}</span>
				<!--{eval $i++;}-->
			<!--{/loop}-->
		</span>
	<!--{/if}-->
	<a $subactives[index]href="home.php?mod=magic&action=shop&operation=index">{lang default}</a><span class="pipe">|</span>
	<a $subactives[hot]href="home.php?mod=magic&action=shop&operation=hot">{lang top}</a>
</p>
<!--{if $magiclist}-->
	<ul class="mtm ml mlm mgcl cl">
	<!--{loop $magiclist $key $magic}-->
		<li>
			<div class="z mg_img">
				<img src="{STATICURL}/image/magic/$magic[pic]" alt="$magic[name]" title="$magic[description]" />
			</div>
			<p><strong>$magic[name]</strong></p>
			<p class="xg1" title="$magic[description]">$magic[description]</p>
			<p>{lang magics_price}
				<!--{if {$_G['setting']['extcredits'][$magic[credit]][unit]}}-->
					<strong class="xi1 xw0">{$_G['setting']['extcredits'][$magic[credit]][title]} $magic[price] {$_G['setting']['extcredits'][$magic[credit]][unit]}/{lang magics_unit}</strong>
				<!--{else}-->
					<strong class="xi1 xw0">$magic[price] {$_G['setting']['extcredits'][$magic[credit]][title]}/{lang magics_unit}</strong>
				<!--{/if}-->
				<!--{if $operation == 'hot'}--><font class="xg1">({lang sold} $magic[salevolume] {lang magics_unit})</font><!--{/if}-->
			</p>
			
			<p>
				<!--{if $magic['num'] > 0}-->
					<a href="home.php?mod=magic&action=shop&operation=buy&mid=$magic[identifier]" onclick="showWindow('magics', this.href);return false;" class="xi2 xw1">{lang magics_operation_buy}</a>
					<!--{if $_G['group']['allowmagics'] > 1}-->
					<em class="pipe">|</em> <a href="home.php?mod=magic&action=shop&operation=give&mid=$magic[identifier]" onclick="showWindow('magics', this.href);return false;" class="xi2">{lang magics_operation_present}</a>
					<!--{/if}-->
				<!--{else}-->
					<span class="xg1">{lang magic_empty}</span>
				<!--{/if}-->
			</p>
		</li>
	<!--{/loop}-->
	</ul>
	<!--{if $multipage}--><div class="pgs cl mtm">$multipage</div><!--{/if}-->
<!--{else}-->
	<p class="emp">{lang data_nonexistence}</p>
<!--{/if}-->